<?php
/***
*
* Class: DataReturnService //返回数据格式
* Author: Jason ZHENG
* Data: 2018-06-21
*
***/
namespace App\Service;


class DataReturnService
{
	public static function returnOk($data='', $msg='')
	{
		return [
			'code'  => 666,
			'msg'	=> $msg,
			'data'  => $data,
		];
	}

	public static function returnError($code=0, $msg='',$data='')
	{
		return [
			'code'  => $code,
			'msg'	=> $msg,
			'data'  => $data,
		];
	}

}